package com.hwtx.form.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 表单模板配置
 * </p>
 *
 * @author baomidou
 * @since 2025-11-26
 */
@Getter
@Setter
@ToString
@TableName("form_config_tpl")
public class FormConfigTpl implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 模板类型
     */
    @TableField("tpl")
    private Integer tpl;

    /**
     * 配置json
     */
    @TableField(value = "config", insertStrategy = FieldStrategy.ALWAYS, updateStrategy = FieldStrategy.ALWAYS)
    private String config;

    /**
     * 表单id
     */
    @TableField("form_id")
    private Long formId;

    /**
     * 组件配置
     */
    @TableField("ctr_config")
    private String ctrConfig;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人ID
     */
    @TableField(value = "create_id", fill = FieldFill.INSERT)
    private String createId;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人ID
     */
    @TableField(value = "update_id", fill = FieldFill.UPDATE)
    private String updateId;
}
